<div class="mhead">
	<span>添加项目</span>
</div>

<div class="mcontent">
	<form id="data-form" action="<?php echo site_url('manage/project/add') ?>" method="post" class="form1">
	<table id="form-table" class="table1">
		<tr>
			<th>项目名称：</th>
			<td>
				<input id="name" name="name" type="text" size="50" maxlength="40" 
					class="{required:true, maxlength:40, messages:{required:'项目名称不能为空', maxlength:'项目名称不能超过40个字符'}}"/>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">项目名称不能为空，最多只能40个字符</p></td>
		</tr>
		<tr>
			<th>项目图片：</th>
			<td>
				<input id="project_image" name="project_image" type="file" size="50" maxlength="40" 
					class="{required:true, messages:{required:'项目图片不能为空'}}"/>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">项目图片不能为空</p></td>
		</tr>
		<tr>
			<th>服务项目：</th>
			<td>
				<span id="service_list"></span>
				<a id="select-service" href="javascript:void(0);">选择服务项目</a>
				<input type="hidden" id="service_id_string" name="service_id_string" value="" 
					class="{required:true, messages:{required:'服务项目不能为空'}}"/>
			</td>
		</tr>
		<tr>
			<th>项目介绍：</th>
			<td>
				<div style="float:left;background:#ffffff;">
					<textarea id="content" name="content" rows="30" cols="130" class="{required:true, messages:{required:'项目介绍不能为空'}}"></textarea>
				</div>
				<div class="clr"></div>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">项目介绍不能为空</p></td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td>
				<input id="add-article" type="submit" value="提交" />
			</td>
		</tr>
	</table>	
	</form>
	
	<div class="blank3"></div>
</div>

<div id="service-dialog" title="选择服务项目" style="display:none;">
	<ul>
	<?php foreach($service_list as $service) {?>
		<li>
			<input type="checkbox" id="service_id" name="service_id" value="<?php echo $service['id'] ?>" title="<?php echo $service['name'] ?>" />
			<span><?php echo $service['name'] ?></span>
		</li>	
	<?php } ?>
	</ul>
</div>

<script type="text/javascript" src="<?php echo base_url(); ?>tatu/zonge-ui/components/validate/jquery.validate.pack.js"></script>

<script type="text/javascript" src="http://source.zongetech.com/nicedit/nicEdit.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>templates/manage/scripts/project_add.js"></script>

